package org.idea.spring.aop.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @Author linhao
 * @Date created in 10:51 上午 2021/5/4
 */
@Configuration
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class MyConfig {

    @Bean
    public Calculate calculate(){
        return new MyCalculate();
    }

    @Bean
    public LogAspect logAspect(){
        return new LogAspect();
    }

}
